<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <select>
        <option-item></option-item>
        <option-item></option-item>
        <option-item></option-item>
      </select>

      <ul>
        <li-item></li-item>
      </ul>
    </div>

    <script src="../../Vue.js"></script>
    <script>
      // option/tr/td不能作为组件的根元素的
      Vue.component("option-item", {
        template: `
          <option value="1">男</option>
        `,
      });
      Vue.component("li-item", {
        template: `
          <li>男</li>
        `,
      });
      new Vue({
        el: "#app",
        data: {},
      });
    </script>
  </body>
</html>
